package com.liu.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author LIU
 * @version 1.0
 * @description: TODO
 * @date 2023/6/18 12:56
 *
 * 使用Feign替代RestTemplate发送Rest请求。使之更符合面向接口化的编程习惯。
 * 导入feign依赖starter
 * 编写Feign客户端接口
 * 消费者启动引导类开启Feign功能注解
 * 访问接口测试
 */
@SpringBootApplication
@EnableFeignClients
public class OrderOpenFeignApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderOpenFeignApplication.class, args);
    }


}
